package com.qiudaozhang.loveblog.entity;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.io.Serializable;

@Entity
@Setter
@Getter
public class Category  implements Serializable {


    private static final long serialVersionUID = -404689704480863246L;
    @Id
    @GenericGenerator(strategy = "increment",name = "increment")
    @GeneratedValue(generator = "increment")
    private Long id;

    private String name;

    private String description;

    private Integer level;

    private Integer parentId;


}
